package Mangos::DB::Mangos::GameobjectTemplate;

use strict;

use base qw(Mangos::DB::Mangos);

__PACKAGE__->meta->setup
(
    table   => 'gameobject_template',

    columns => 
    [
        entry          => { type => 'integer', not_null => 1 },
        type           => { type => 'integer', default => '0', not_null => 1 },
        displayId      => { type => 'integer', default => '0', not_null => 1 },
        name           => { type => 'varchar', default => '', length => 100, not_null => 1 },
        IconName       => { type => 'varchar', default => '', length => 100, not_null => 1 },
        castBarCaption => { type => 'varchar', default => '', length => 100, not_null => 1 },
        unk1           => { type => 'varchar', default => '', length => 100, not_null => 1 },
        faction        => { type => 'integer', default => '0', not_null => 1 },
        flags          => { type => 'integer', default => '0', not_null => 1 },
        size           => { type => 'float', default => 1, not_null => 1, precision => 32 },
        questItem1     => { type => 'integer', default => '0', not_null => 1 },
        questItem2     => { type => 'integer', default => '0', not_null => 1 },
        questItem3     => { type => 'integer', default => '0', not_null => 1 },
        questItem4     => { type => 'integer', default => '0', not_null => 1 },
        questItem5     => { type => 'integer', default => '0', not_null => 1 },
        questItem6     => { type => 'integer', default => '0', not_null => 1 },
        data0          => { type => 'integer', default => '0', not_null => 1 },
        data1          => { type => 'integer', default => '0', not_null => 1 },
        data2          => { type => 'integer', default => '0', not_null => 1 },
        data3          => { type => 'integer', default => '0', not_null => 1 },
        data4          => { type => 'integer', default => '0', not_null => 1 },
        data5          => { type => 'integer', default => '0', not_null => 1 },
        data6          => { type => 'integer', default => '0', not_null => 1 },
        data7          => { type => 'integer', default => '0', not_null => 1 },
        data8          => { type => 'integer', default => '0', not_null => 1 },
        data9          => { type => 'integer', default => '0', not_null => 1 },
        data10         => { type => 'integer', default => '0', not_null => 1 },
        data11         => { type => 'integer', default => '0', not_null => 1 },
        data12         => { type => 'integer', default => '0', not_null => 1 },
        data13         => { type => 'integer', default => '0', not_null => 1 },
        data14         => { type => 'integer', default => '0', not_null => 1 },
        data15         => { type => 'integer', default => '0', not_null => 1 },
        data16         => { type => 'integer', default => '0', not_null => 1 },
        data17         => { type => 'integer', default => '0', not_null => 1 },
        data18         => { type => 'integer', default => '0', not_null => 1 },
        data19         => { type => 'integer', default => '0', not_null => 1 },
        data20         => { type => 'integer', default => '0', not_null => 1 },
        data21         => { type => 'integer', default => '0', not_null => 1 },
        data22         => { type => 'integer', default => '0', not_null => 1 },
        data23         => { type => 'integer', default => '0', not_null => 1 },
        ScriptName     => { type => 'varchar', default => '', length => 64, not_null => 1 },
    ],

    primary_key_columns => [ 'entry' ],
);

1;

package Mangos::DB::Mangos::GameobjectTemplate::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Mangos::GameobjectTemplate' }

__PACKAGE__->make_manager_methods('gameobject_template');

1;
